#ifndef COMPONENTS_BODY_H
#define COMPONENTS_BODY_H

#include "Common/Common.h"
#include <Box2D/Box2D.h>
#include <ECS/ECS.h>

class Body : public ECS::Component
{
	mtMETA_DEC;
public:
    Body();
    virtual ~Body();

   void onStart();

    b2Body* getBody() const;

    void setPosition(const Vector& position);

    void setBodyType(b2BodyType type);

    b2BodyType getBodyType() const;
protected:
    b2Body* _body;
};

#endif